@import url(./variable.scss);

// 字云 tooltip定位导致body底部多出空白区域的问题修正
div.tooltip {
  left: 0;
  top: 0;
}

// 修改element組件的樣式
.el-table-title {
  text-align: center;
}

.el-loading-mask {
  z-index: 99999999 !important;
}

.el-table {
  td {
    font-size: 14px;
    color: $fColor3;
    padding: 8px 0;
  }

  th {
    padding: 8px 0;
    background-color: $tableColor;
    font-size: 16px;
    color: $fColor;
  }
}

.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
  color: $fColor3;
}

.el-pagination__total {
  color: $fColor3;
}

.pageWhite .el-pagination__total {
  color: $bgColor;
}

// 导航菜单
.el-menu-item.is-active {
  background-color: #41b584 !important;
  color: #fff !important;
}

.el-menu-item,
.el-submenu__title {
  text-align: left;
}

.el-switch__label,
.el-tabs__item {
  color: #fff;
}

.el-input__inner {
  background-color: transparent;
  color: #fff;
}

// dataV表格字体
.dv-scroll-board .rows .row-item {
  font-size: 22px !important;
}

.dv-scroll-board .header .header-item {
  font-size: 22px !important;
  padding: 0 3px !important;
}

.fontMidd .dv-scroll-board .rows .row-item {
  font-size: 22px !important;
}

.fontMidd .dv-scroll-board .header .header-item {
  font-size: 22px !important;
  padding: 0 3px !important;
}

.dv-active-ring-chart .active-ring-info .active-ring-name {
  width: unset;
}

.dv-scroll-ranking-board .ranking-info .info-name {
  padding-left: 6px;
}


// input
.el-input__inner,
.el-cascader:not(.is-disabled):hover .el-input__inner {
  border-color: #409effa1;
}

.blueTheme {
  $tableBorderColor: #3a70a9;
  $fC01: #21e3ff;

  .el-select__tags>span>span:nth-child(1) {
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  //#region el-table

  // S 修改合计行位置
  .el-table {
    display: flex;
    flex-direction: column;
  }

  .el-dcits-table__expand-icon {
    color: $fC01;
  }

  .el-table__header-wrapper {
    padding-bottom: 3px !important;
  }

  .el-table__footer-wrapper {
    order: 1;
    height: 44px;
    margin-top: -4px;
  }

  .el-table__body-wrapper {
    order: 2;
    top: -3px;
  }

  .el-table__footer-wrapper tbody td {
    background-color: #041938;
  }

  // E 修改合计行位置

  .el-table-title {
    text-align: center;
  }

  .el-loading-mask {
    z-index: 9 !important;
    background-color: #0a2131e6;
  }

  .el-table {
    thead.is-group th {
      background-color: #031a3a;
    }

    td {
      font-size: 14px;
      // border: 0;
      border-color: $tableBorderColor;
      height: 40px;
      padding: 0 10px;
      color: #a6d8ef;
    }

    th {
      // color: #a6d8ef;
      // background-color: #031a3a;
      color: #fff;
      background-color: #5c68fe;
      // border-right: 0;
      // border-bottom: 0;
      padding: 3px 0;
      border-color: $tableBorderColor;
    }
  }

  .el-table::before {
    background-color: transparent;
  }

  .el-table--border {
    border-bottom: 1px solid;

    th.gutter:last-of-type {
      border-bottom-width: 0;
    }
  }

  .el-table td.el-table__cell,
  .el-table th.el-table__cell.is-leaf,
  .el-table--border,
  .el-table--group {
    // border: 0;
    border-color: $tableBorderColor;

    &::after {
      // width: 0;
      background-color: $tableBorderColor;
    }
  }

  .el-table tr,
  .el-table,
  .el-table__expanded-cell {
    background-color: transparent;
  }

  .el-table__body tr.current-row>td {
    background-color: #0363c5;
    color: #fff;
  }

  .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
    background: #0363c5;
    color: $fC01;
  }

  .el-table__footer-wrapper tbody td.el-table__cell,
  .el-table__header-wrapper tbody td.el-table__cell {
    color: #a6d8ef;
  }

  .el-table tr {
    &:hover {
      >td {
        background: #0363c5;
        color: $fC01;
      }
    }

    &:nth-child(2n) {
      background-color: #041938;
    }
  }

  //#endregion

  //#region dcist-table

  .el-dcits-table {
    & table .el-dcits-table__cell.is-leaf {
      border-bottom-color: $tableBorderColor;
    }
  }

  .el-dcits-table-title {
    text-align: center;
  }

  .el-dcits-table--enable-row-hover .el-dcits-table__body tr:hover>td.el-dcits-table__cell {
    background: #0363c5;
    color: $fC01;
  }

  .el-dcits-table__body tr.current-row>td.el-dcits-table__cell,
  .el-tag {
    background: #0363c5;
    color: $fC01;
  }

  .el-dcits-table__summary-wrapper tbody td.el-dcits-table__cell,
  .el-dcits-table__header-wrapper tbody td.el-dcits-table__cell {
    color: #a6d8ef;
  }

  // .el-dcits-table__header-wrapper {
  // }

  // .el-dcits-table__body-wrapper {
  // }

  .el-dcits-table__summary-wrapper {
    & table td.el-dcits-table__cell {
      background-color: #031a3a;
      font-size: 16px;
      // border: 0;
      border-color: $tableBorderColor;
      height: 40px;
      padding: 0 10px;
      color: #a6d8ef;
    }

    // & table tr:hover >td.el-dcits-table__cell {
    //   background: #0363c5;
    //   color: $fC01;      
    // }
  }

  .el-dcits-table__fixed {
    // &-header-wrapper {
    // }

    &-summary-wrapper,
    &-body-wrapper {
      & table td.el-dcits-table__cell {
        background-color: #031a3a;
      }
    }

    &-body-wrapper table tr.hover-row>td.el-dcits-table__cell {
      background: #0363c5;
      color: $fC01;
    }

    // &-summary-wrapper table tr:hover >td.el-dcits-table__cell {
    //   background: #0363c5;
    //   color: $fC01;
    // }
  }

  .el-dcits-table {
    thead.is-group th {
      background-color: #031a3a;
    }

    td {
      font-size: 16px;
      // border: 0;
      border-color: $tableBorderColor;
      height: 40px;
      padding: 0 10px;
      color: #a6d8ef;
    }

    th {
      font-size: 16px;
      color: #a6d8ef;
      background-color: #031a3a;
      // border-right: 0;
      // border-bottom: 0;
      padding: 3px 0;
      border-color: $tableBorderColor;
    }
  }

  .el-dcits-table::before {
    background-color: transparent;
  }

  .el-dcits-table--border {
    border-bottom: 1px solid;

    th.gutter:last-of-type {
      border-bottom-width: 0;
    }
  }

  .el-dcits-table--border,
  .el-dcits-table--group {
    // border: 0;
    border-color: $tableBorderColor;

    &::after {
      // width: 0;
      background-color: $tableBorderColor;
    }
  }

  .el-dcits-table tr,
  .el-dcits-table,
  .el-dcits-table__expanded-cell {
    background-color: transparent;
  }

  .el-dcits-table__body tr.hover-row>td.el-dcits-table__cell {
    background: #0363c5;
    color: $fC01;
  }

  .el-dcits-table__row {
    &:nth-child(2n) {
      background-color: #041938;
    }
  }

  //#endregion

  .el-tooltip__popper {
    max-width: 500px;

    &.is-dark {
      background: #04071ff2;
      border: 1px solid #00fff394;
    }
  }

  .el-dialog__close {
    color: white;

    &:hover {
      color: aqua;
    }
  }

  .el-dialog__header {
    background-color: #2c87bb;

    .el-dialog__title {
      color: white;
    }
  }

  .el-dialog__body {
    color: white;
    background-color: #031a3a;
  }

  .el-dialog__footer {
    color: white;
    background-color: #031a3a;
    text-align: center;
  }

  .el-dialog {
    background-color: transparent;
  }

  .el-pagination {
    .el-pager {
      li {
        background: transparent;
        color: #fff;
      }

      li:not(.disabled) {

        &.active {
          color: #409EFF;
        }
      }
    }

    .btn-prev .btn-next {
      background-color: black !important;
    }

    input {
      color: white !important;
    }

    button {
      background-color: transparent !important;
      border: 1px solid #084880;
      color: white;

      &:disabled {
        background-color: transparent !important;
        border: 1px solid #084880;
      }
    }

    span {
      background-color: transparent;
      color: #ffffff !important;
      padding: 0 5px;
      line-height: 2;
      border-radius: 4px;
    }

  }


  // 导航菜单
  .el-menu-item.is-active {
    background-color: #41b584 !important;
    color: #fff !important;
  }

  .el-menu-item,
  .el-submenu__title {
    text-align: left;
  }

  .el-switch__label,
  .el-tabs__item {
    color: #fff;
  }

  .el-input__inner {
    background-color: transparent;
    color: #fff;
  }

  .el-input.is-disabled .el-input__inner {
    background-color: #8c8c8c;
    border-color: #8c8c8c;
  }

  .el-input.is-disabled .el-icon-arrow-down:before {
    color: #8c8c8c;
  }

  .el-range-input {
    font-size: 16px;
    color: $fC01;
    background-color: transparent;
  }

  .el-range-separator {
    color: #6a8ea6;
  }

  .el-tag.el-tag--info {
    background-color: #384469b3;
    border-color: #384469;
    color: #eee;
  }

  .el-tag.el-tag--info .el-tag__close {
    color: #eee;
  }

  .el-select .el-tag__close.el-icon-close {
    background-color: #2a4477;
    color: #fff;
  }

  .el-select .el-tag__close.el-icon-close:hover {
    background-color: #00fff394;
  }

  .el-input__icon.el-icon-circle-close,
  .el-input__icon.el-icon-circle-close:hover,
  .el-select__caret.el-input__icon.el-icon-circle-close {
    color: #00fff3aa;
  }


  .el-cascader__tags .el-tag {
    max-width: 60%;
  }

  .el-cascader__dropdown,
  .el-select-dropdown {
    background: #04071ff2;
    border-color: #00fff394;
  }

  .el-cascader__suggestion-item {
    color: #bfc8da;
  }

  .el-cascader__suggestion-item:focus,
  .el-cascader-node.is-selectable.in-active-path,
  .el-cascader__suggestion-item:hover.el-cascader-node.is-selectable.in-active-path {
    color: #409EFF;
  }

  .el-cascader__suggestion-item:focus,
  .el-cascader__suggestion-item:hover,
  .el-cascader-node:not(.is-disabled):focus,
  .el-cascader-node:not(.is-disabled):hover {
    background: #112c54;
  }

  .el-cascader-menu {
    color: #bfc8da;
  }

  .el-radio__inner {
    background-color: #cdece0;
  }

  .el-select-dropdown__item.hover,
  .el-select-dropdown__item:hover {
    background: #112c54;
  }

  .el-popper[x-placement^="bottom"] .popper__arrow::after {
    border-bottom-color: #112c54;
  }

  .el-select-dropdown__item {
    color: #bfc8da;
  }

  .el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
    background-color: unset;
  }

  .el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover {
    background-color: #112c54;
  }

  .el-cascader-menu__wrap {
    height: 350px;
  }

  .el-drawer__header {
    text-align: left;
    margin: 0px;
    background-color: #07294D;
    height: 60px;
    line-height: 60px;
    padding-left: 20px;
    padding-top: 0px;
  }

  .el-drawer__title {
    background-color: #071C37;
  }

  .el-drawer__header span {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
  }

  .el-drawer {
    background-color: #071C37;
  }

  .el-submenu__title {
    background-color: #071C37;
    color: #AADAF2;
    font-size: 16px;
  }

  .el-submenu__title:hover {
    background-color: #0B2C4D;
  }

  .el-submenu {
    background-color: #0B2C4D;
  }

  .el-container {
    border: none;
  }

  .el-menu {
    background-color: #071C39;
    border-right: none;
  }

  .el-tree {
    /* background-color: #071C39; */
    background-color: transparent;
  }

  .el-tree-node__label {
    color: #AADAF2;
  }

  .el-checkbox__inner {
    background-color: #061C37;
  }

  .el-tree-node {
    background-color: transparent;

    >.el-tree-node__content {
      background-color: transparent;
    }

    &.is-current {
      >.el-tree-node__content {
        color: yellow;
        background-color: #061C37;
      }
    }
  }

  .el-tree-node__content:not(:hover) {
    /* background-color: #061C37 !important; */
    color: white;
  }

  .el-tree-node__content:hover {
    /* background-color: #061C37 !important; */
    color: aqua;
  }

  .btn {
    background-color: #114469;
    border: none;
  }


  .el-switch__label {
    span {
      font-size: 16px;
    }

    &.is-active {
      color: orange;
    }
  }

  .el-switch__core {
    height: 30px;

    &::after {
      width: 22px;
      height: 26px;
    }
  }

  .el-input--medium .el-input__inner {
    font-size: 16px;
  }

  .el-input--medium .el-input__inner {
    font-size: 16px;
  }

  .el-input--prefix .el-input__inner {
    font-size: 16px;
  }

  .el-input-number {

    >.el-input-number__decrease,
    >.el-input-number__increase {
      color: #FFF;
      background-color: #409EFF;
      border-color: #66b0ff;

      &:hover {
        background: #66b0ff;
        color: #fff;
      }
    }
  }

  .el-select-dropdown__item {
    font-size: 16px;
  }

  .el-popover {
    color: $fC01;
    background-color: #081338;
    opacity: 0.95;
    // border: 1px solid #3fc2ff;
    border: 0;
    font-size: 16px;
  }

  .el-select:hover .el-input__inner,
  .el-input__inner,
  .el-cascader:not(.is-disabled):hover .el-input__inner {
    border-color: #2c87bb;
    color: $fC01;
  }

  .el-select .el-input .el-select__caret {
    color: $fC01;
    font-size: 16px;
    font-weight: bold;
  }

  .el-input__icon {
    color: $fC01;
    font-size: 16px;
  }

  .el-picker-panel {
    color: $fC01;
    background-color: #081338;
    opacity: 0.95;
    border: 1px solid #3fc2ff;
    font-size: 16px;

    &__footer {
      background: transparent;
      border-color: #3fc2ff;
    }
  }

  .el-picker-panel__icon-btn,
  .el-date-picker__header-label,
  .el-date-table th {
    color: $fC01;
    font-size: 16px;
  }

  .el-date-table td.next-month,
  .el-date-table td.prev-month {
    color: #148281;
  }

  .el-date-table td span {
    font-size: 14px;
  }

  .el-date-table th,
  .el-date-picker__header--bordered {
    border-color: #3fc2ff;
  }

  .el-date-table td.current:not(.disabled) span {
    background-color: #fecf41;
    color: #333;
    width: 30px;
    height: 26px;
    font-size: 16px;
  }

  .el-date-table td.in-range div,
  .el-date-table td.in-range div:hover,
  .el-month-table td.in-range div,
  .el-month-table td.in-range div:hover {
    background-color: #113a77;
  }

  .el-month-table td .cell {
    color: $fC01;
  }

  .el-month-table td.current:not(.disabled) .cell {
    color: $fC01;
    font-size: 16px;
  }

  .el-table .cell {
    font-size: 16px;
  }

  .el-button {
    color: #FFF;
    background-color: #409EFF;
    border-color: #409eff;

    &:hover {
      background: #66b1ff;
      color: #fff;
    }
  }

  .el-button--success {
    color: #FFF;
    background-color: #67c23a;
    border-color: #67c23a;

    &:hover {
      background: #85ce61;
      border-color: #85ce61;
      color: #FFF;
    }
  }

  .el-button--warning {
    color: #FFF;
    background-color: #e6a23c;
    border-color: #e6a23c;

    &:hover {
      background: #ebb563;
      border-color: #ebb563;
      color: #FFF;
    }
  }

  .el-button--info {
    color: #FFF;
    background-color: #909399;
    border-color: #909399;

    &:hover {
      background: #a6a9ad;
      border-color: #a6a9ad;
      color: #FFF;
    }
  }

  .el-button--danger {
    color: #FFF;
    background-color: #f78989;
    border-color: #f78989;

    &:hover {
      background: #f78989;
      border-color: #f78989;
      color: #FFF;
    }
  }

  .el-button--cancel {
    color: #606266;
    background-color: #fff;
    border-color: #DCDFE6;

    &:hover {
      color: #409EFF;
      border-color: #c6e2ff;
      background-color: #ecf5ff;
    }
  }

  // S notify框
  .el-notification {
    background-color: #0d2924;
    border-color: #2c87bb;

    &__title {
      color: #fff;
      font-size: 18px;
    }

    &__content {
      color: #fff;
      font-size: 16px;
    }

    &__closeBtn {
      color: #fff;

      &:hover {
        color: #2c87bb;
      }
    }
  }

  .el-checkbox__label {
    color: #fff;
  }

  .el-cascader__search-input {
    background: #090a26;
    color: #fff;
    display: inline-block;
    width: 10%;
    min-width: 5px;
  }

  // E notify框

  .el-transfer {
    height: 100%;

    &-panel {
      width: 40%;
      height: 100%;
      color: #fff;
      border-color: #2c87bb;
      background-color: transparent;

      &__header {
        height: 40px;
        color: #fff;
        border-color: #2c87bb;
        background-color: transparent;

        >.el-checkbox {
          >.el-checkbox__label {
            color: #fff;

            span {
              font-size: 16px;
              color: #fff;
            }
          }
        }
      }

      &__body {
        height: calc(100% - 40px);
      }

      &__list {
        height: 100%;
        text-align: left;
      }

      &__item {
        &.el-checkbox {
          color: #fff;

          >.el-checkbox__input {
            &.is-checked+.el-checkbox__label {
              color: yellow;
            }
          }
        }

        &:hover {
          .el-checkbox__label {
            color: aqua;
          }
        }
      }
    }

    &__buttons {
      >.el-button {
        padding: 12px;
        border-radius: 50%;
      }
    }
  }
}






// dataV样式修改
.dv-scroll-board .header .header-item {
  text-align: center;
}